package common.cacher
{
    import com.netease.protobuf.Int64;
    
    import kernel.core.Core;
    
    import proto.client.HSC001001;
    import proto.client.LongVO;
    import proto.client.UserInfo;

    public class UserInfoCacher extends HttpCacher
    {
        private static var _ins:UserInfoCacher;


        public function UserInfoCacher()
        {
            super (0x001001 , UserInfo , [ "userId"]);
        }

        public static function get instance():UserInfoCacher
        {
            if (!_ins)
            {
                _ins = new UserInfoCacher ();
            }
            return _ins;
        }

        override protected function sendMessage(id:*):void
        {
            if (id is Int64)
            {
                var message:LongVO = new LongVO ();
                message.value = id;
                Core.httpSend (_head , message , ongetData , id);
            }
        }
    }
}
